package com.quick.controller;

import com.quick.service.BookService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/book")
public class BookController {
    @Resource
    private BookService bookService;

    
    @RequestMapping("/getBookInfo")
    public String getBookInfo(){
        StringBuffer sb = new StringBuffer();
        sb.append("book name:").append(bookService.getName())
                .append(",isbn:").append(bookService.getIsbn())
                .append(",author:").append(bookService.getAuthor());
        return sb.toString();
    }

}
